syms hr
syms hl
syms Pr
syms Pl
syms Pc
A = [hr^2,hr,1;0,0,1;hl^2,-hl,1];
b = [Pr,Pc,Pl];

x = A\b';